package com.jy.oms.framework.asyn.task.model;

/**
 * 执行任务结果
 *
 * @author liuquan
 */
public class ExecuteTaskResult {
    /**
     * 任务执行是否成功
     */
    private boolean isSuccess;

    /**
     * 任务执行结果
     */
    private Object result;

    /**
     * 是否超过最大重试次数
     */
    private boolean exceedRetryMaxNum;

    public boolean isSuccess() {
        return isSuccess;
    }

    public ExecuteTaskResult setSuccess(boolean success) {
        isSuccess = success;
        return this;
    }

    public Object getResult() {
        return result;
    }

    public ExecuteTaskResult setResult(Object result) {
        this.result = result;
        return this;
    }

    public boolean isExceedRetryMaxNum() {
        return exceedRetryMaxNum;
    }

    public ExecuteTaskResult setExceedRetryMaxNum(boolean exceedRetryMaxNum) {
        this.exceedRetryMaxNum = exceedRetryMaxNum;
        return this;
    }
}
